package com.alinesno.cloud.initializr.starter.repository;

import org.apache.ibatis.annotations.Update;

import com.alinesno.cloud.common.facade.mapper.repository.IBaseJpaMapper;
import com.alinesno.cloud.initializr.starter.entity.InitializrBootVersionEntity;

/**
 * <p>
 * 持久层接口
 * </p>
 *
 * @author ${author}
 * @since 2020-11-20 10:06:08
 */
public interface InitializrBootVersionRepository extends IBaseJpaMapper<InitializrBootVersionEntity> {

	/**
	 * 取消所有已经是激活状态的默认值
	 */
	@Update("UPDATE initializr_boot_version SET is_active = 0 WHERE is_active = 1")
	void reverseDefaultActive();

}
